<?
require("config.php");

$location_status .= " | Add";

$show_backnav = "size_menu";

$menuname = NULL;

$menutarget = NULL;

if (NULL!=$action){

   $field = array(
	"code", 
	"name", 
	);


   $content = array(
	$Code,
	$Name,
	);

   myInsert($table,$field,$content);

   header("location:" . $rela_path . "share/msg.php?v=16");

   exit();

}

if (checkCode($table,$Code)){

	header("location:" . $rela_path . "share/msg.php?v=9001");
  
}

require($rela_path . "inc/header.php");

?>


<form action="" method="post" enctype="multipart/form-data" name="form1">

<table width="95%" border="0" align="center">
  <tr> 
    <td align="right">&nbsp; </td>
  </tr>
  <tr> 
    <td><p>Code : <input type="text" class="text" name="Code" size="40" value=<?print($Code)?>><br>




<!--hidden filed-->
<input name="action" type="hidden" value="add">
<input name="id" type="hidden" value="<?print($id)?>">
<input name="Code" type="hidden" value="<?print($Code)?>">





        <br>
        Name : 
        <input type="text" class="text" name="Name" size="40">
        <br>
        <br>
        <br><input type="image" src="../../images/bt_cancel.gif" onClick="Redirect('size_menu.php',1);return false;"> <input type="image" src="../../images/bt_save.gif">
      </p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp; </p></td>
  </tr>
</table>

</form>

<?
require($rela_path . "inc/footer.php");
?>
